package com.cskaoyan.bean.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 订单表
 * 用于数据库中订单表信息的接受
 */
@Data
public class Order {
    // private Integer id;
    // private Integer userId;//user_id
    // private String orderSn;//order_sn
    // private Integer orderStatus;//order_status
    // private Integer aftersaleStatus;//aftersale_status
    // private String consignee;//
    // private String mobile;//
    // private String address;//
    // private String message;//
    // private Double goodsPrice;//goods_price
    // private Double freightPrice;//freight_price
    // private Double couponPrice;//coupon_price
    // private Double integralPrice;//integral_price
    // private Double grouponPrice;//groupon_price
    // private Double orderPrice;//order_price
    // private Double actualPrice;//actua_price
    // private String payId;//pay_id
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date payTime;//pay_time
    // private String shipSn;//ship_sn
    // private String shipChannel;//ship_channel
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date shipTime;//ship_time
    // private Double refundAmount;//refund_amount
    // private String refundType;//refund_type
    // private String refundContent;//refund_content
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date refundTime;//refund_time
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date confirmTime;//confirm_time
    // private Integer comments;//
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date endTime;//end_time
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date addTime;//add_time
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // private Date updateTime;//update_time
    // private Boolean deleted;
    private Integer id;

    private Integer userId;

    private String orderSn;

    private Short orderStatus;

    private Short aftersaleStatus;

    private String consignee;

    private String mobile;

    private String address;

    private String message;

    private BigDecimal goodsPrice;

    private BigDecimal freightPrice;

    private BigDecimal couponPrice;

    private BigDecimal integralPrice;

    private BigDecimal grouponPrice;

    private BigDecimal orderPrice;

    private BigDecimal actualPrice;

    private String payId;

    private Date payTime;

    private String shipSn;

    private String shipChannel;

    private Date shipTime;

    private BigDecimal refundAmount;

    private String refundType;

    private String refundContent;

    private Date refundTime;

    private Date confirmTime;

    private Short comments;

    private Date endTime;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;
}
